package com.wlh.demo01;

import java.util.concurrent.Callable;

/**
 * @author WuLiangHang
 */
public class MyRunnable implements Runnable {
//    Callable
    @Override
    public void run() {
        //任务代码
        for (int i = 0; i < 10; i++) {
            //Thread.currentThread() 获取到当前线程对象
            System.out.println(Thread.currentThread().getName() + "：正在执行！" + i);
        }
    }
}
